﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBAccess;

namespace Task
{
    public class Task : ITask
    {
        private string _uid;
        private string _name;
        private string _description;
        private int _id_project;
        private string _startdate;
        private string _enddate;
        private int _status;

        public string Id
        {
            get 
            {
                return _uid;
            }
            
        }

        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }
        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }
        public int Id_project
        {
            get
            {
                return _id_project;
            }
            set
            {
                _id_project = value;
            }
        }
        public string StartDate
        {
            get
            {
                return _startdate;
            }
            set
            {
                _startdate = value;
            }
        }

        public string EndDate
        {
            get
            {
                return _enddate;
            }
            set
            {
                _enddate = value;
            }
        }

        public int Status
        {
            get
            {
                return _status;
            }
            set
            {
                _status = value;
            }
        }

        public Task(string name, string description, int id_project, string start_date, string end_date, int status)
        {
            _name = name;
            _description = description;
            _id_project = id_project;
            _startdate = start_date;
            _enddate = end_date;
            _status = status;
        }
        
    }
}
